import type {App} from "vue"
import button from "./button/index.vue"
import table from "./table/index.vue"
import form from "./form/index.vue"
import Switch from "./switch/index.vue";
import pagination from "./pagination/index.vue"
import image from "./image/index.vue"
import tooltip from "./tooltip/index.vue"
import select from "./select/index.vue"
import tree_select from "./select/tree-select.vue"
import tab from "./tab/index.vue"
import tag from "./tag/index.vue"
import drawer from "./drawer/index.vue"
import dialog from "./dialog/index.vue"
import tree from "./tree/index.vue"
import checkbox from "./checkbox/t-checkbox.vue"
import input from "./input/index.vue"
import floating from "./floating/index.vue"
import card from "./card/index.vue"
import editor from "./editor/index.vue"

export default {
    install(Vue: App) {
        Vue.component("t-btn", button)
        Vue.component("t-table", table)
        Vue.component("t-form", form)
        Vue.component("t-image", image)
        Vue.component("t-tooltip", tooltip)
        Vue.component("t-select", select)
        Vue.component("t-tree-select", tree_select)
        Vue.component("t-switch", Switch)
        Vue.component("t-tab", tab)
        Vue.component("t-drawer", drawer)
        Vue.component("t-pagination", pagination)
        Vue.component("t-dialog", dialog)
        Vue.component("t-tree", tree)
        Vue.component("t-checkbox", checkbox)
        Vue.component("t-input", input)
        Vue.component("t-floating", floating)
        Vue.component("t-tag", tag)
        Vue.component("t-card", card)
        Vue.component("t-editor", editor)
    }
}